module top(
	input clk,
	input reset,
	input ps2_clk,
	input ps2_data,
	output reg [6:0] out1,
	output reg [6:0] out2,
	output reg [6:0] out3,
	output reg [6:0] out4,
	output reg [6:0] out5,
	output reg [6:0] out6
);

	wire [7:0] ascii;
	wire nextdata_n;
	wire [7:0] data;
	wire ready;
	wire key;
	wire overflow;

	ps2_keyboard ps2_keyboard(
		.clk(clk),
		.clrn(reset),
		.ps2_clk(ps2_clk),
		.ps2_data(ps2_data),
		.nextdata_n(nextdata_n),
		.data(data),
		.ready(ready),
		.overflow(overflow)
	);

	Process Process(
		.clk(clk),
		.rst(reset),
		.data(data),
		.ready(ready),
		.overflow,
		.nextdata_n(nextdata_n),
		.key(key),
		.ascii(ascii)
	);

	display display(
		.data(data),
		.ascii(ascii),
		.key(key),
		.out1(out1),
		.out2(out2),
		.out3(out3),
		.out4(out4),
		.out5(out5),
		.out6(out6)
	);

endmodule
